package com.woniuxy.service;

import com.woniuxy.entity.PageBean;
import com.woniuxy.entity.Prescription;
import com.woniuxy.entity.PrescriptionAndPatient;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrescriptionService {

    //更新支付状态
    Integer updateStatusByPrescriptionId(
            String prescriptionNo,
            Integer prescriptionStatus
    );

    //查询前台所需的诊单信息数目
    Integer selectPreAndPatientCount(
            Integer prescriptionStatus
    );

    //新增处方
    String addPrescription(Prescription prescription);

    //查询前台所需的诊单信息
    List<PrescriptionAndPatient> selectPreAndPatient(Integer pageIndex,
                                                     Integer pageSize,
                                                     Integer prescriptionStatus);

    /*
    * 根据条件查询具体的处方
    * */
    PageBean<Prescription> getPrescriptionCondition(
            Prescription prescription,
            int pageIndex,int pageSize
    );
    /*
    * 根据处方号，修改处方的状态
    * */
    void modifyPrescriptionStatus( String prescriptionNO);
    /*
    * 根据处方号，修改处方的病情诊断
    * */
    void modifyConditionDetails(String prescriptionNo,String  conditionDetails);
}
